import request from "../../index";
import { IRequestType } from "@/service/type";

export function getCategoryGoodsCount() {
  return request.get<IRequestType>({
    url: "/goods/category/count"
  });
}
export function getCategoryGoodsSale() {
  return request.get<IRequestType>({
    url: "/goods/category/sale"
  });
}
export function getCategoryGoodsFavor() {
  return request.get<IRequestType>({
    url: "/goods/category/favor"
  });
}
export function getSaleGoodsTop10() {
  return request.get<IRequestType>({
    url: "/goods/sale/top10"
  });
}

export function getAddressGoodsSale() {
  return request.get<IRequestType>({
    url: "/goods/address/sale"
  });
}

export function getAmountGoodsList() {
  return request.get<IRequestType>({
    url: "/goods/amount/list"
  });
}
